package com.ty.day4.home;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/17 17:59
 */
public class Duck extends Bird {
    @Override
    void doneEgg() {

    }
}
class DonaldDuck extends Duck implements Talker{

    @Override
    public void speak() {
        System.out.println("讲话");
    }
}
interface Talker{
    void speak();
}
